package com.hgxd.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgxd.entity.pojo.Equipment;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备表 Mapper 接口
 * </p>
 *
 * @author fsd
 * @since 2023-10-18
 */
@Mapper
public interface EquipmentMapper extends BaseMapper<Equipment> {

    @MapKey("value")
    List<Map<String, Object>> getAllOrganization();

    Integer getOrganizationOnlineRate();

    Integer getCountEquipmentType();

    List<Equipment> getNewDataByOrganizationName(String organizationName);
}
